<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<script type="text/javascript">
	$(function(){
	 	var piId = '${piId}';
 		piId = encodeURI(piId); // 进行URL编码
		piId = encodeURI(piId); // 进行URL编码（第2次）
		piId =  '${ctx}/apply/checkMyApplyInfoData?piId=' +piId;
		$("img").attr({ src: piId});
	});
</script>
<div style="position:absolute;left:20px;top:50px;margin: 5px;width: 100%;height: 100%;text-align: center;">
	<c:if test="${fn:length(activityCoordinates) > 0}">
		<div style="width: 100%;height: 100%;text-align: center;">
			<img style="position:absolute;left:0px;top:0px;">
		</div>
		<c:forEach var='coord' items='${activityCoordinates}'>
			<div style="position:absolute; border:1px solid red; left:<c:out value="${coord.x}"/>px; top:<c:out value="${coord.y}"/>px;width:<c:out value="${coord.width}"/>px;height:<c:out value="${coord.height}"/>px;z-index: 0"></div>
		</c:forEach>
	</c:if>
	<c:if test="${fn:length(activityCoordinates) == 0}">
		<h2>该流程已结束</h2>
	</c:if>
</div>